using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Shapes;
namespace MicroMsg.UI.UserContrl
{
	public class ExtralChatButton : UserControl
	{
		internal StackPanel contentStackPanel;
		internal Button ShareLocationBtn;
		internal Button CameraBtn;
		internal Button ImgSendBtn;
		internal Button ShareCardBtn;
		internal Path triangleFlag;
		private bool _contentLoaded;
		public event RoutedEventHandler ShareLocationButtonClick;
		public event RoutedEventHandler PicButtonClick;
		public event RoutedEventHandler ShareCardClick;
		public event RoutedEventHandler CameraButtonClick;
		public ExtralChatButton()
		{
			this.InitializeComponent();
			base.set_Visibility(1);
			this.ShareLocationBtn.SetValue(MMTiltEffect.IsTiltEnabledProperty, true);
			this.CameraBtn.SetValue(MMTiltEffect.IsTiltEnabledProperty, true);
			this.ImgSendBtn.SetValue(MMTiltEffect.IsTiltEnabledProperty, true);
			this.ShareCardBtn.SetValue(MMTiltEffect.IsTiltEnabledProperty, true);
		}
		public void Switch()
		{
			if (base.get_Visibility() == null)
			{
				base.set_Visibility(1);
				return;
			}
			base.set_Visibility(0);
		}
		public void Show()
		{
			base.set_Visibility(0);
		}
		public void Hide()
		{
			base.set_Visibility(1);
		}
		public bool IsShowing()
		{
			return base.get_Visibility() == 0;
		}
		private void ShareLocationBtn_Click(object sender, RoutedEventArgs e)
		{
			if (this.ShareLocationButtonClick != null)
			{
				this.ShareLocationButtonClick.Invoke(sender, e);
			}
		}
		private void ImgSendBtn_Click(object sender, RoutedEventArgs e)
		{
			if (this.PicButtonClick != null)
			{
				this.PicButtonClick.Invoke(sender, e);
			}
		}
		private void ShareCardBtn_Click(object sender, RoutedEventArgs e)
		{
			if (this.ShareCardClick != null)
			{
				this.ShareCardClick.Invoke(sender, e);
			}
		}
		private void CameraBtn_Click(object sender, RoutedEventArgs e)
		{
			if (this.CameraButtonClick != null)
			{
				this.CameraButtonClick.Invoke(sender, e);
			}
		}
		[DebuggerNonUserCode]
		public void InitializeComponent()
		{
			if (this._contentLoaded)
			{
				return;
			}
			this._contentLoaded = true;
			Application.LoadComponent(this, new Uri("/MicroMsg;component/Source/UI/Chat/ExtralChatButton.xaml", 2));
			this.contentStackPanel = (StackPanel)base.FindName("contentStackPanel");
			this.ShareLocationBtn = (Button)base.FindName("ShareLocationBtn");
			this.CameraBtn = (Button)base.FindName("CameraBtn");
			this.ImgSendBtn = (Button)base.FindName("ImgSendBtn");
			this.ShareCardBtn = (Button)base.FindName("ShareCardBtn");
			this.triangleFlag = (Path)base.FindName("triangleFlag");
		}
	}
}
